package com.h2cloud;

/**
 * @Package: com.h2cloud
 * @ClassName: ChineseSortExample
 * @Author: wulongkai
 * @CreateTime: 2023/11/3 17:39
 * @Description:
 */

import java.math.BigDecimal;
import java.math.RoundingMode;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ChineseSortExample {
    public static void main(String[] args) throws SQLException {
        // 创建一个 BigDecimal 对象
        BigDecimal originalValue = new BigDecimal("1.0901");

        // 设置小数位数并进行向上取整
        BigDecimal roundedValue = originalValue.setScale(2, RoundingMode.HALF_UP);

        // 打印结果
        System.out.println("Original Value: " + originalValue);
        System.out.println("Rounded Value (CEILING): " + roundedValue);

        String s = null;
        System.out.println(s == null);

        final Connection connection = DriverManager.getConnection("", "", "");

    }
}

